'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
    const {router, controller} = app;
    router.get('/', controller.home.index);
    router.post('/user', controller.user.index);
    router.post('/user/message', controller.user.userMessage);
    router.post('/contract/find', controller.contract.find);

    router.post('/staff/query', controller.staff.query);
    router.post('/staff/create', controller.staff.create);
    router.post('/staff/delete', controller.staff.delete);
    router.post('/staff/update', controller.staff.update);
};
